package com.lql.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author huangding
 * @description 用户相关车辆
 * @date 2018-12-07 15:03:13
 */
@Data
@TableName(value = "user")
public class User extends Model<User> {

    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 开发者号Id
     */
    private String unionId;

    /**
     *
     */
    private String openId;

    /**
     * 车牌
     */
    private String carNo;

    /**
     * 商家code
     */
    private Integer merchantCode;

    /**
     *
     */
    private LocalDateTime createTime;

    /**
     *
     */
    private LocalDateTime createTimestamp;


    /**
     * 昵称
     */
    private String nickname;

    /**
     * 用户的性别，值为1时是男性，值为2时是女性，值为0时是未知
     */
    private Integer sex;

    /**
     * 市
     */
    private String city;

    /**
     * 省
     */
    private String province;

    private Integer balance;

}
